package cn.ztr.ymcc.mapper;

import cn.ztr.ymcc.domain.Course;
import cn.ztr.ymcc.domain.Teacher;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author ztr
 * @since 2023-02-27
 */
public interface CourseMapper extends BaseMapper<Course> {

    void insertCourseTeacher(@Param("courseId") Long id, @Param("teacherIds") List<Long> teacharIds);

    List<Long> selectTeachersById(Long id);

    void deleteCourseTeacher(Long id);

    List<Teacher> getTeacherCourseId(Long id);
}
